import { createApp } from 'vue'
import App from './App.vue'
// 国际化  
import ElementPlus from 'element-plus'
//@ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

// svg
import 'virtual:svg-icons-register'
const app = createApp(App)
//引入仓库
import store from '@/store'
app.use(ElementPlus, {
  locale: zhCn,
})
// 自定义插件
import globalComponent from '@/components/index'
// sccc
import '@/styles/index.scss'
// 路由
import router from '@/router'
// 暗黑模式
import 'element-plus/theme-chalk/dark/css-vars.css'
import './permission'
// 自定义指令文件
import { isHasButton } from '@/directive/has'
isHasButton(app)
app.use(store).use(globalComponent).use(router).mount('#app')
